package com.ruoyi.assets.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.assets.mapper.AssetsinformationMapper;
import com.ruoyi.assets.domain.Assetsinformation;
import com.ruoyi.assets.service.IAssetsinformationService;

/**
 * 资产信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-04
 */
@Service
public class AssetsinformationServiceImpl implements IAssetsinformationService 
{
    @Autowired
    private AssetsinformationMapper assetsinformationMapper;

    /**
     * 查询资产信息
     * 
     * @param AssetsInformationID 资产信息主键
     * @return 资产信息
     */
    @Override
    public Assetsinformation selectAssetsinformationByAssetsInformationID(Long AssetsInformationID)
    {
        return assetsinformationMapper.selectAssetsinformationByAssetsInformationID(AssetsInformationID);
    }

    /**
     * 查询资产信息列表
     * 
     * @param assetsinformation 资产信息
     * @return 资产信息
     */
    @Override
    public List<Assetsinformation> selectAssetsinformationList(Assetsinformation assetsinformation)
    {
        return assetsinformationMapper.selectAssetsinformationList(assetsinformation);
    }

    /**
     * 新增资产信息
     * 
     * @param assetsinformation 资产信息
     * @return 结果
     */
    @Override
    public int insertAssetsinformation(Assetsinformation assetsinformation)
    {
        return assetsinformationMapper.insertAssetsinformation(assetsinformation);
    }

    /**
     * 修改资产信息
     * 
     * @param assetsinformation 资产信息
     * @return 结果
     */
    @Override
    public int updateAssetsinformation(Assetsinformation assetsinformation)
    {
        return assetsinformationMapper.updateAssetsinformation(assetsinformation);
    }

    /**
     * 批量删除资产信息
     * 
     * @param AssetsInformationIDs 需要删除的资产信息主键
     * @return 结果
     */
    @Override
    public int deleteAssetsinformationByAssetsInformationIDs(Long[] AssetsInformationIDs)
    {
        return assetsinformationMapper.deleteAssetsinformationByAssetsInformationIDs(AssetsInformationIDs);
    }

    /**
     * 删除资产信息信息
     * 
     * @param AssetsInformationID 资产信息主键
     * @return 结果
     */
    @Override
    public int deleteAssetsinformationByAssetsInformationID(Long AssetsInformationID)
    {
        return assetsinformationMapper.deleteAssetsinformationByAssetsInformationID(AssetsInformationID);
    }

    /**
     * 查询最后一个编号
     * @return
     */
    @Override
    public Assetsinformation selectAssetsinformationLastindex() {
        return assetsinformationMapper.selectAssetsinformationLastindex();
    }

    /**
     * 查询资产信息
     * @return
     */
    @Override
    public List<Assetsinformation> selectAssetsinformationAll() {
        return assetsinformationMapper.selectAssetsinformationAll();
    }
}
